package com.yz.group1.group_1.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yz.group1.group_1.entity.Doctor2;
import com.yz.group1.group_1.mapper.Doctor2Mapper;
import com.yz.group1.group_1.service.Doctor2Service; // 修正：导入正确的接口名
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Doctor22ServiceImpl // 修正：类名拼写为DoctorServiceImpl
        extends ServiceImpl<Doctor2Mapper, Doctor2>
        implements Doctor2Service { // 修正：实现正确的接口名



    @Override
    public List<Doctor2> listAllDoctor() {
        return baseMapper.selectList(null);
    }
}